package com.nineclock.sign.controller;

import com.nineclock.common.entity.Result;
import com.nineclock.sign.SignControllerApi;
import com.nineclock.sign.dto.SignDTO;
import com.nineclock.sign.service.SignInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * 移动端：签到
 */
@RestController
@RequestMapping()
public class Insert implements SignControllerApi {

    @Autowired
    SignInfoService signInfoService;

    @Override
    @PostMapping("/insert")
    public Result insert(SignDTO signDTO) throws IOException {

        signInfoService.insert(signDTO);
        return Result.success();
    }
}
